<%@page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html class="root61">
<head>
<%@include file="/views/common/include/taglib.jsp"%>
<%@include file="/views/common/include/head.jsp"%>
<link type="text/css" rel="stylesheet"
	href="${ctx }/css/dlifestyle/sectionparent.css" source="widget" />
<link type="text/css" rel="stylesheet"
	href="${ctx }/css/dlifestyle/admin.css" source="widget" />
</head>
<body style="margin:0px;">
	<section class="mainborder">
		<section class="edit_scrollable padder">
			<div class="edit_content">
				<form id="myFrom">
					<div class="form">
						<div class="item">
							<input id="categoryId" type="hidden" value="${integralCategory.id }">
							<span class="col-sm-1 editlable">名称：</span>
							<div class="fl">
								<input class="editform-control" style="width:330px;" id="integralName" onblur="checkIntegralName();" value="${integralCategory.name }" type="text" class="text" maxlength="50" placeholder="请输入名称（最多50字）" />
								<em class="emStyle">*</em>
							</div>
						</div>
						<div class="item">
							<span class="col-sm-1 editlable">积分最小值：</span>
							<div class="fl">
								<input class="editform-control" style="width:150px;" id="min" onblur="checkMinNumber();" value="${integralCategory.min}" type="number" maxlength="11" placeholder="请输入积分最小值" />
								<em class="emStyle">*</em>
							</div>
						</div>
						<div class="item">
							<span class="col-sm-1 editlable">积分最大值：</span>
							<div class="fl">
								<input class="editform-control" style="width:150px;" id="max" onblur="checkMaxNumber();" value="${integralCategory.max}" type="number" maxlength="11" placeholder="请输入积分最大值" />
								<em class="emStyle">*</em>
							</div>
						</div>
					</div>
				</form>
				 <div class="itemEditMap" style="height:100px">
                    <input id="imageLogo" type="hidden" value="${integralCategory.logo }">
                    <span class="col-sm-1 editlableEditMap" style="height:100px;line-height:100px;width:145px;">图像：</span>
                    <div class="flEditMap" style="height:100px;">
                        <c:if test="${integralCategory.logo == null || integralCategory.logo == ''}">
                            <img id="preview3" style="width:70px;height:70px;float:left;margin-top:10px;" title="快上传积分分类图像吧" src="${ctx}/images/jifen_logo.png" />
                        </c:if>
                        <c:if test="${integralCategory.logo != null && integralCategory.logo != ''}">
                            <img id="preview3" style="width:70px;height:70px;float:left;margin-top:10px;" src="${sessionScope.image_logo}${integralCategory.logo}" />
                        </c:if>
                        <div class="mtjxsa" style="float:left;width: 300px;margin-left: 30px;height: 87px;padding-bottom: 0px;padding-top: 0px;">
                              <p style="text-align: left;font-size:12px;" id="imageBtn">
                                  <input type="hidden" name="imageLogoUrl" id="imageLogo" value="${integralCategory.logo}"/>
                                  <label class="lbl">提示：只能上传.jpg, .png的图片格式,照片文件大小最大为10MB</label>
                                  
                              </p>
                              <div>
                                  <div class="fl">
                                      <button style="width:100px;height:25px;margin-top: 5px; background-color: #593505;color: #fff;border: 0px;line-height:25px;" class="acblu tctpsc">上传图像</button>
                                  </div>
                              </div>
                          </div>
                        <%@include file="/views/common/uploader/picture.jsp" %>
                    </div>
                </div>
			</div>
		</section>
	</section>

	<script type="text/javascript">
		document.getElementById("myFrom").reset();
	</script>
</body>
<script
	src="${ctx}/js/controllers/mall/integralcategory/IntegralCategoryEditController.js"
	type="text/javascript"></script>
<script type="text/javascript">
	var ctx = '${ctx}';
	setCtx(ctx);
</script>
<!-- 解决ie 6 7 8 9不能显示placeholder的问题 -->
	<script src="${ctx}/js/lib/jquery.JPlaceholder.js"></script>
</html>
